//
//  DLNetWorkManager.h
//  delongzhitou
//
//  Created by Mr.Wang on 2018/11/22.
//  Copyright © 2018 delongzhitou. All rights reserved.
//

#import "AFHTTPSessionManager.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, DLRequestMethod) {
    DLRequestMethodGET = 0, // 默认
    DLRequestMethodPOST,
};


@interface DLNetWorkManager : AFHTTPSessionManager

+ (instancetype)shareInstance;

- (NSURLSessionDataTask *)requestWithMethod:(DLRequestMethod)method path:(NSString *)path parameters:(NSDictionary *)parameters success:(void (^)(id responseObject))responseSuccess failure:(void (^)(NSError *error))responseFailure;

@end

NS_ASSUME_NONNULL_END
